<?php
 $fa = get_famous_aphorism(APP_PATH . 'plugin/qt_famous_aphorism/sentences.php'); ?>
<script>
setTimeout(function() {
document.title = document.title + ' - <?php echo $fa; ?>';
}, 500);
</script>
<?php
function get_famous_aphorism($file) {
	$s = file_get_contents($file);
	$arr = explode("\n",trim($s));
	$cnt = intval(count($arr) -1);
	if($cnt < 1) return "";
	return $arr[rand(1, $cnt)];
}
?>
